package org.dragon.services;

import org.dragon.models.Account;
import org.dragon.models.RedisSessionRole;

import java.util.List;

/**
 * Author:     Zhao Yan
 * DateTime:   2023/5/18 11:25
 */
public interface AccountService {

    Account findById(String id);

    Account findByEmail(String email);

    List<RedisSessionRole> findRoles(String accountId);

    void save(Account account);
}
